
<?php include './application/views/common/header.php'; ?>
<div class="warp">
    <div class="main">
        <table width="90%" cellspacing="0" cellpadding="0" border="0" class="user_table">
            <tr>
                <td valign="top" class="user_table_td">
                    <?php include './application/views/common/user_left.php'; ?>
                </td>
                <td valign="top">

                    <!-- User_Left End -->
                    <div class="user_right">
                    	<div class="user_list_title">
 							<?php include './application/views/common/user_sub_left.php'; ?>
                        </div>
                        <!-- User_List_Title End -->
                        <div class="user_list_con">
                            <p>客户数量：<?php echo $count; ?> </p>
                            <div class="user_list_search">
                                <form id="tmpform" action="/user/customers" method="get">
                                    用户名：<input type="text" name="username" value="<?php echo $where['username']; ?>" class="input1"/>
                                    真实姓名：<input type="text" name="realname" value="<?php echo $where['realname']; ?>" class="input1"/>
                                    邮箱：<input type="text" name="email" value="<?php echo $where['email']; ?>" class="input1" style="width:135px;"/>
                                    排序：<select name="m_order" class="input1">
                                        <option value="reg_time" <?php
                                        if ($where['m_order'] == 'reg_time') {
                                            echo "selected='selected'";
                                        }
                                        ?>>注册时间</option>
                                        <option value="collection" <?php
                                        if ($where['m_order'] == 'collection') {
                                            echo "selected='selected'";
                                        }
                                        ?>>待收金额</option>
                                    </select>
                                    <input type="submit" value="查询"  class="u9s_But">
                                </form>
                            </div>
                            <div class="user_list_con">
                                <table width="100%" border="0" cellspacing="0" cellpadding="0">
                                    <tr bgcolor="#F3F3F3" height="40px">
                                        <td align="center"><strong>用户名</strong></td>
                                        <td align="center"><strong>真实姓名</strong></td>
                                        <td align="center"><strong>性别</strong></td>
                                        <td align="center"><strong>手机</strong></td>
                                        <td align="center"><strong>邮箱</strong></td>
                                        <td align="center"><strong>QQ</strong></td>
                                        <td align="center"><strong>注册时间</strong></td>
                                        <td align="center"><strong>待收</strong></td>
                                        <td align="center"><strong>所在地</strong></td>
                                        <td align="center"><strong>操作</strong></td>
                                    </tr>
<?php $sex = array('0' => '', '1' => '男', '2' => '女'); ?>
<?php foreach ($list as $val) { ?>
                                        <tr height="35px">
                                            <td align="center"><a href="/user/other/<?php echo $val['user_id']; ?>.html"><?php echo $val['username']; ?></a></td>
                                            <td align="center"><?php echo $val['realname']; ?></td>
                                            <td align="center"><?php echo $sex[$val['sex']]; ?></td>
                                            <td align="center"><?php echo $val['phone']; ?></td>
                                            <td align="center"><?php echo $val['email']; ?></td>
                                            <td align="center"><?php echo $val['qq']; ?></td>
                                            <td align="center"><?php echo date('Y-m-d', $val['add_time']); ?></td>
                                            <td align="center"><?php echo $val['collection']; ?></td>
                                            <td align="center">
    <?php echo $val['province'] ? $area[$val['province']] : ''; ?>
                                        <?php echo $val['city'] ? $area[$val['city']] : ''; ?>
                                        <?php echo $val['area'] ? $area[$val['area']] : ''; ?>
                                            </td>
                                            <td align="center">证明材料</td>
                                        </tr>
<?php } ?>
                                    <tr>
                                        <td align="center" colspan="8" class="page"><?php echo $this->pagination->create_links(); ?></td>
                                    </tr>
                                </table>
                            </div>
                            <!-- User_List_Con End -->
                        </div>
                        <!-- User Right End -->
                    </div>
                    </div>
                    <!-- User End -->
                </td>
            </tr>
        </table>
<?php include './application/views/common/footer.php'; ?>